package com.company.project.web.base;

import com.company.project.core.result.Result;
import com.company.project.core.result.ResultGenerator;
import com.company.project.core.service.security.SignService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by xiaoEight on 2018/7/4.
 */
@RestController
public class SignController {

    @Autowired
    private SignService signService;

    @ApiOperation(value = "签名测试", httpMethod = "GET", notes = "签名测试")
    @RequestMapping(value = "/base/sign",method = RequestMethod.GET)
    public Result sign() {
        String userId = "123";
        return ResultGenerator.genSuccessResult(signService.getSign(userId));
    }

}
